Skip to content

feat(concerto-core): add CollectionSizeValidator class with property gating and tests - #1298

Merged
jamieshorten merged 3 commits into
accordproject:mainfrom
muhabdulkadir:moh/core-introspect-collection-validator
Aug 25, 2026
Merged

jamieshorten merged 3 commits into
accordproject:mainfrom
muhabdulkadir:moh/core-introspect-collection-validator

Conversation

@muhabdulkadir

@muhabdulkadir muhabdulkadir commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1292

Add CollectionSizeValidator to enforce min/max element counts on array and map-typed properties.

Changes

  • New CollectionSizeValidator class following existing Validator patterns
  • Integrate into Property.process() with getSizeValidator() getter
  • Gate: reject size on non-array, non-map properties at model load time
  • Export from package index
  • Tests for valid usage, invalid property types, negative bounds, and min > max

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

…gating and tests

Signed-off-by: muhammed-abdulkadir <muhammed.abdulkadir@docusign.com>
Signed-off-by: muhammed-abdulkadir <muhammed.abdulkadir@docusign.com>
Signed-off-by: muhammed-abdulkadir <muhammed.abdulkadir@docusign.com>
@jamieshorten
jamieshorten merged commit aa3fbd8 into accordproject:main Aug 25, 2026
12 checks passed
@muhabdulkadir
muhabdulkadir deleted the moh/core-introspect-collection-validator branch August 25, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants